package com.yuandian.enums;

/**
 *	统一返回信息
 */
public enum ResultCodeEnum {

	BUSINESS_NAME_DUPLICATES(1004, "同业务下步骤名称不能重复，请修改步骤名称！"),

	BUSINESS_CONFIRM_FAIL(1005, "确认失败，该步骤及对应的业务已被删除，请确认后再进行操作！"),

	NO_MATCH_UNCONFIRM_RESOURCE(1000, "没有符合条件的未确认服务资源"),

	SERVER_RESOURCE_EXIT(3008,"服务资源已存在"),

	SYSTEM_NAME_EXIST(3001,"同名系统已经存在！"),
	BUSINESS_NAME_EXIST(3001,"同名业务已经存在！"),
	STEP_NAME_EXIST(3002,"同名步骤已经存在！"),
	STEP_RESOURCE_EXIST(3002,"该业务已有对应服务资源！"),
	AREA_CODE_EXIST(3002,"区域编码已经存在！"),
	RETRUN_CODE_NAME_EXIST(3002,"返回码信息存在重复！"),

	QUERY_FAIL(3001,"访问量分布详情查询错误！"),

	INSERT_FAIL(4000,"新增失败"),
	;
	/**
	 * 返回码
	 */
	private Integer code;

	/**
	 * 返回信息
	 */
	private String msg;

	ResultCodeEnum(Integer code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public Integer getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}

}
